package com.qaml.mes.device.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qaml.mes.device.dao.EqpRepairDO;
import com.qaml.mes.device.dto.eqp.EqpRepairDTO;

import java.util.ArrayList;

/**
 * @ClassName EqpRepairServiceRepository
 * @Description TODO
 * @Author leikai
 * @Date 2024/3/4 0004 11:25
 * @Version 1.0
 */
public interface EqpRepairRepository {

    Long countByUserId(String userId);

    void saveBatch(ArrayList<EqpRepairDO> eqpRepairDOS);

    public int updateById(EqpRepairDO eqpRepairDO);

    /**
     * app-->设备维修列表
     *
     * @param page
     * @param pageSize
     * @param eqpRepairDTO
     * @return
     */
    IPage<EqpRepairDO> repairList(Integer page, Integer pageSize, EqpRepairDTO eqpRepairDTO);

    /**
     * app-->设备维修删除
     *
     * @param recordId
     */
    void deleteByRecordId(String recordId);

    void insert(EqpRepairDO eqpRepairDO);

}